package design.structure.代理;

/**
 * 买车人
 */
public class People implements BuyCar {
    private String name;

    People() {
    }

    People(String name) {
        this.name = name;
    }

    @Override
    public void buyCar() {
        System.out.println(name + " 来买车了");
    }

    @Override
    public int askPrice(int price) {
        System.out.println(price + "--讨价中");
        return ++price;
    }
}
